package com.es.bxip.domain;

import java.util.List;
import java.util.Set;

public class Deal {

    private Double price;
    private Double coordX;
    private Double coordY;
    private String description;
    private String title;
    private String author;
    private String imageUrl;
//	private Administrador administrador = null;
    private String initDate;
    private String endDate;
    private String pubDate;
    private Integer id;
    private String lugar;
    private Set<String> tags;
    private List<String> comments;

    public Deal(Integer id, String description, String title, String author, String initDate, String endDate, String pubDate, String imageUrl, String lugar, Set<String> tags) {
        this.description = description;
        this.title = title;
        this.author = author;
        this.imageUrl = imageUrl;
        this.initDate = initDate;
        this.endDate = endDate;
        this.pubDate = pubDate;
        this.id = id;
        this.lugar = lugar;
        this.tags = tags;
    }

    public Deal(Integer id, String description, String title, String author, String fechaInicio, String fechaFin, String lugar, String imageURL) {
        this.description = description;
        this.title = title;
        this.author = author;
        this.initDate = fechaInicio;
        this.endDate = fechaFin;
        this.lugar = lugar;
        this.imageUrl = imageURL;
        this.id = id;
    }

    public Deal() {
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getFechaInicio() {
        return initDate;
    }

    public void setFechaInicio(String fechaInicio) {
        this.initDate = fechaInicio;
    }

    public String getFechaFin() {
        return endDate;
    }

    public void setFechaFin(String fechaFin) {
        this.endDate = fechaFin;
    }

    public String getFechaPublicacion() {
        return pubDate;
    }

    public void setFechaPublicacion(String fechaPublicacion) {
        this.pubDate = fechaPublicacion;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLugar() {
        return lugar;
    }

    public void setLugar(String lugar) {
        this.lugar = lugar;
    }

    public Set<String> getTags() {
        return tags;
    }

    public void setTags(Set<String> tags) {
        this.tags = tags;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getCoordX() {
        return coordX;
    }

    public void setCoordX(Double coordX) {
        this.coordX = coordX;
    }

    public Double getCoordY() {
        return coordY;
    }

    public void setCoordY(Double coordY) {
        this.coordY = coordY;
    }

    public List<String> getComments() {
        return comments;
    }

    public void setComments(List<String> comments) {
        this.comments = comments;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Deal other = (Deal) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }
}
